﻿using System.Data.Entity.ModelConfiguration;
using QDT.Core.Members;

namespace QDT.Core.MSData.Mapping
{
    public class UserAutoBidMapping:EntityTypeConfiguration<UserAutoBid>
    {
        public UserAutoBidMapping()
        {
            HasKey(o => o.ID);
            Property(o => o.UserId).HasColumnName("user_id");
            Property(o => o.LoadMoney).HasColumnName("load_money");
            Property(o => o.MinLoadMoney).HasColumnName("min_load_money");
            Property(o => o.DealDateUpperLimit).HasColumnName("deal_date_upper_limit");
            Property(o => o.MoneyRateLowerLimit).HasColumnName("money_rate_lower_limit");
            Property(o => o.RetainMoney).HasColumnName("retain_money");
            ToTable(DB.TPref("user_autobid"));
        }
    }
}